package com.sali.b_design_pattern.g_singleton_pattern.lesson_destroy_singleton.a_reflect.safe.enum_method;

/**
 * @description: 枚举类的底层就是饿汉单例设计模式
 * @author: zhang hang
 * @date: 2023/3/19 13:56.
 * @version: 1.0
 */
public enum EnumSingleton2 {

    INSTANCE;

    public static EnumSingleton2 getInstance() {
        return INSTANCE;
    }
}
